package com.liyuan.help_e.service;

import com.liyuan.help_e.model.Question;

import java.util.List;

public interface QuestionService {
    Question[] selectQuestionsByPage(Integer page, Integer size);

    Question[] selectQuestionsByReadCount(Integer size);

    Integer sumAllQuestions();

    Question[] selectQuestionsByPageAndTag(Integer page, Integer size, String type);

    Integer sumQuestionsByTag(String type);

    Question[] selectQuestionsByReadCountAndTag(Integer size, String type);

    Question selectQuestionById(Integer id);

    void insertQuestion(Question question);

    void updateQuestion(Question question);

    Question[] selectPersonalQuestionsByUserId(Integer id, Integer page, int i);

    Integer sumByUserId(Integer id);
}
